﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
namespace Infrastructure.WpfClient.Accessibility
{
    public partial class AccessibilityCacheClientSyncProvider : Microsoft.Synchronization.Data.SqlServerCe.SqlCeClientSyncProvider
    {
        [InjectionConstructor]
        public AccessibilityCacheClientSyncProvider([Dependency]string connectionString)
        {
            
            this.ConnectionString = connectionString;
            this.ApplyChangeFailed += new EventHandler<Microsoft.Synchronization.Data.ApplyChangeFailedEventArgs>(AccessibilityCacheClientSyncProvider_ApplyChangeFailed);
            this.ConflictResolver.ClientDeleteServerUpdateAction = Microsoft.Synchronization.Data.ResolveAction.ServerWins;
            this.ConflictResolver.ClientInsertServerInsertAction = Microsoft.Synchronization.Data.ResolveAction.ServerWins;
            this.ConflictResolver.ClientUpdateServerDeleteAction = Microsoft.Synchronization.Data.ResolveAction.ClientWins;
            this.ConflictResolver.ClientUpdateServerUpdateAction = Microsoft.Synchronization.Data.ResolveAction.ServerWins;

        }

        void AccessibilityCacheClientSyncProvider_ApplyChangeFailed(object sender, Microsoft.Synchronization.Data.ApplyChangeFailedEventArgs e)
        {
          

        }
        
    }
}
